package edu.nf.ch08.web;

import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wangl
 * @date 2025/5/14
 */
@RestController
//允许当前的controller方法跨域
//@CrossOrigin(originPatterns = "*")
public class UserController {

    @GetMapping("/hello")
    public String hello() {
        return "Hello world";
    }
}